#include<iostream>
#include<iomanip>
using namespace std;

int main()
{
    char a;
    cin >> a;
    cout << setw(3) << a <<endl;
    cout << setw(2) << a << a << a << endl;
    cout << a << a << a << a << a << endl; 
    return 0;
}